<?php
/**
 * @version $Id: view.html.php 23 2009-03-27 19:22:28Z der.el.kuku $
 * @package    WikiInclude
 * @subpackage
 * @author     EasyJoomla {@link http://www.easy-joomla.org Easy-Joomla.org}
 * @author     Nikolai Plath {@link http://www.easy-joomla.org}
 * @author     Created on 26-Mar-2009
 */

//--No direct access
defined( '_JEXEC' ) or die( '=;)' );

jimport( 'joomla.application.component.view');

/**
 * HTML View class for the WikiInclude Component
 *
 * @package    WikiInclude
 * @subpackage Views
 */

class WikiIncludesViewWikiIncludes extends JView
{
	/**
	 * WikiIncludes view display method
	 * @return void
	 **/
	function display($tpl = null)
	{
		JToolBarHelper::title(   JText::_( 'WikiInclude Manager' ), 'generic.png' );
		JToolBarHelper::deleteList();
		JToolBarHelper::editListX();
		JToolBarHelper::addNewX();

		// Get data from the model
	 	$items =& $this->get('Data');	
	 	$pagination =& $this->get('Pagination');
	
		// push data into the template
		$this->assignRef('items', $items);
		$this->assignRef('pagination', $pagination);

		parent::display($tpl);
	}//function
	
	function getWebPage($url)
	{
		$model = $this->getModel();
		return $model->getWeb_page($url);
	}
	

}//class